import { type RouterOptions, type RouteRecordRaw } from 'vue-router'

import { Guide, Picture, Wallet, KnifeFork, MilkTea, Sunny, OfficeBuilding, School, Tickets, Place, Avatar } from '@element-plus/icons-vue'

const SystemRoutes: Array<RouteRecordRaw> = [
  {
    path: '',
    name: 'SysHome',
    meta: {
      title: '首页',
      icon: Guide
    },
    component: () => import('@/views/systems/home.vue')
  },
  {
    path: 'banner',
    name: 'SysBanner',
    meta: {
      title: '轮播图',
      icon: Picture
    },
    component: () => import('@/views/systems/banner/index.vue')
  },
  {
    path: 'zhaopin',
    name: 'zhaopinPublish',
    meta: {
      title: '招聘管理',
      icon: Avatar
    },
    component: () => import('@/views/systems/zhaopin/index.vue')
  },
  {
    path: 'shop',
    name: 'shopPublish',
    meta: {
      title: '店铺管理',
      icon: KnifeFork
    },
    component: () => import('@/views/systems/shop/index.vue')
  },
  {
    path: 'product',
    name: 'productPublish',
    meta: {
      title: '商品管理',
      icon: MilkTea
    },
    component: () => import('@/views/systems/product/index.vue')
  },
  {
    path: 'scene',
    name: 'scenePublish',
    meta: {
      title: '景点管理',
      icon: Sunny
    },
    component: () => import('@/views/systems/scene/index.vue')
  },
  {
    path: 'rentout',
    name: 'rentoutPublish',
    meta: {
      title: '租房管理',
      icon: School
    },
    component: () => import('@/views/systems/rentout/index.vue')
  },
  {
    path: 'house',
    name: 'housePublish',
    meta: {
      title: '售房管理',
      icon: OfficeBuilding
    },
    component: () => import('@/views/systems/house/index.vue')
  },
  {
    path: 'explore',
    name: 'ExploreTable',
    meta: {
      title: '探索管理',
      icon: Wallet
    },
    component: () => import('@/views/systems/explore/index.vue')
  },
  {
    path: 'news',
    name: 'newsPublish',
    meta: {
      title: '资讯管理',
      icon: Tickets
    },
    component: () => import('@/views/systems/news/index.vue')
  },
  {
    path: 'traffic',
    name: 'trafficPublish',
    meta: {
      title: '交通管理',
      icon: Place
    },
    component: () => import('@/views/systems/traffic/index.vue')
  }
]

export default SystemRoutes
